]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/keyboard: use correct style class name to fix menu highlight
authorDan Winship <danw@gnome.org>
Mon, 19 Sep 2011 12:21:43 +0000 (08:21 -0400)
committerDan Winship <danw@gnome.org>
Mon, 19 Sep 2011 21:36:13 +0000 (17:36 -0400)
The keyboard status item doesn't derive from SystemStatusButton, since
it doesn't use an icon. But this meant it wasn't getting the right
class name, and so was using the full-width menu title highlight
rather than the small one. Fix that.

js/ui/status/keyboard.js

index a1117078e226b7e563930ea01931c94497a4f1a9..baa6f846155e78507a9b5139812d095b484007f4 100644 (file)
@@ -53,6 +53,7 @@ XKBIndicator.prototype = {
         this._container.connect('get-preferred-height', Lang.bind(this, this._containerGetPreferredHeight));
         this._container.connect('allocate', Lang.bind(this, this._containerAllocate));
         this.actor.set_child(this._container);
+        this.actor.add_style_class_name('panel-status-button');
 
         this._iconActor = new St.Icon({ icon_name: 'keyboard', icon_type: St.IconType.SYMBOLIC, style_class: 'system-status-icon' });
         this._container.add_actor(this._iconActor);